﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PathNode
{
    /// <summary>
    /// 从起点走到目前点的消耗
    /// </summary>
    public float Gcost;
    /// <summary>
    /// 预估的从目前点到终点的消耗
    /// </summary>
    public float Hcost;
    /// <summary>
    /// 总计消耗
    /// </summary>
    public float TotalCost;
    /// <summary>
    /// 是否可通过
    /// </summary>
    public bool Traversable;
    /// <summary>
    /// 上一个节点，父节点
    /// </summary>
    public PathNode LastStepGrid;
    /// <summary>
    /// 标记i
    /// </summary>
    public int indexI;
    /// <summary>
    /// 标记j
    /// </summary>
    public int indexJ;
}
